package priv.yiyuan.example.design.chain.command02;

/**
 * 日志处理者
 * <p>
 * 抽象处理者
 *
 * @author YiYuan
 * @data 2025/10/9
 * @apoNote
 */
public abstract class LoggerHandler {

    protected LogCommand logCommand;

    protected LoggerHandler nextHandler;

    public LoggerHandler(LogCommand logCommand) {
        this.logCommand = logCommand;
    }

    public void setNextHandler(LoggerHandler nextHandler) {
        this.nextHandler = nextHandler;
    }

    public abstract void log(Context context);
}
